<div class="main-content">
    <div class="container">
        <div class="row">
            <div class="col-sm-12">
                <ol class="breadcrumb">
                    <li>
                        <i class="clip-file"></i>
                        <a href="#">
                            Panel Administrativo
                        </a>
                    </li>
                    <li class="active">
                        Empleados
                    </li>					
                </ol>
                <div class="page-header">
                    <h1>Empleados <small>Registrar</small></h1>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <!-- start: DYNAMIC TABLE PANEL -->
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <i class="icon-external-link-sign"></i>
                        Empleado
                        <div class="panel-tools">
                            <a class="btn btn-xs btn-link panel-collapse collapses" href="#">
                            </a>
                            <a class="btn btn-xs btn-link panel-config" href="#panel-config" data-toggle="modal">
                                <i class="icon-wrench"></i>
                            </a>
                            <a class="btn btn-xs btn-link panel-refresh" href="#">
                                <i class="icon-refresh"></i>
                            </a>
                            <a class="btn btn-xs btn-link panel-expand" href="#">
                                <i class="icon-resize-full"></i>
                            </a>
                            <!--<a class="btn btn-xs btn-link panel-close" href="#">
                                <i class="icon-remove"></i>
                            </a> -->
                        </div>
                    </div>
                    <div class="panel-body">
                        <div class="row">
                            <!-- start: TEXT FIELDS PANEL -->
                            <div class="panel-body">
                                <div class="alert" id="mensaje" style="display: none;"></div>
                                <form action="<?= base_url("acceso/registrarEmpleado"); ?>" method="post" role="form" class="form-horizontal">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-1 control-label" for="frmProveedor">Nombres</label>
                                                <div class="col-sm-3">
                                                    <input type="hidden" name="pag" value="empl">
                                                    <input type="hidden" id="idEmp" name="idEmp" value="<?= set_value('idEmp', $this->form_data->id); ?>" class="form-control">
                                                    <span class="input-icon">                                                
                                                        <input type="text" id="nombre" name="nombre" value="<?= set_value('nombre', $this->form_data->nom_emp); ?>" class="form-control">
                                                        <i class="icon-user"></i>
                                                    </span>
                                                </div>
                                                <label class="col-sm-1 control-label" for="frmProveedor">Apellidos</label>
                                                <div class="col-sm-4">
                                                    <span class="input-icon">                                                
                                                        <input type="text" id="nombre" name="apellido" value="<?= set_value('apellido', $this->form_data->ape_emp); ?>" class="form-control">
                                                        <i class="icon-user"></i>
                                                    </span>
                                                </div>
                                                <label class="col-sm-1 control-label" for="direccion">Fecha Nacimiento</label>
                                                <div class="col-sm-2 input-group">
                                                    <input type="text" id="fecNac" name="fecNac" value="<?= set_value('fecNac', $this->form_data->fec_nac); ?>" class="form-control date-picker" data-date-viewmode="years" data-date-format="dd-mm-yyyy">
                                                    <span class="input-group-addon">
                                                        <i class="icon-calendar"></i>
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-1 control-label" for="direccion">Dirección</label>
                                                <div class="col-sm-7">
                                                    <span class="input-icon">
                                                        <input type="text" id="direccion" name="dir" value="<?= set_value('direccion', $this->form_data->dir); ?>" class="form-control">
                                                        <i class="icon-hand-right"></i>
                                                    </span>
                                                </div>
                                                <label class="col-sm-1 control-label" for="telefono">Sucursal</label>
                                                <div class="col-sm-3">
                                                    <?php
                                                    $css = 'class="form-control search-select" id="suc" placeholder="Seleccione sucursal"';
                                                    echo form_dropdown("suc", $sucursales, null, $css);
                                                    ?>
                                                </div>                                                

                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="col-sm-1 control-label" for="dni">DNI</label>
                                                <div class="col-sm-2">
                                                    <span class="input-icon">
                                                        <input type="text" id="dni" name="dni" value="<?= set_value('dni', $this->form_data->dni); ?>" class="form-control limited" maxlength="8">
                                                        <i class="icon-hand-right"></i>
                                                    </span>
                                                </div>
                                                <label class="col-sm-1 control-label" for="tel">Teléfono</label>
                                                <div class="col-sm-2">
                                                    <span class="input-icon">
                                                        <input type="text" id="telefono" name="tel" value="<?= set_value('telefono', $this->form_data->tel); ?>" class="form-control">
                                                        <i class="icon-phone"></i>
                                                    </span>
                                                </div>
                                                <label class="col-sm-1 control-label" for="sexo">Sexo</label>
                                                <div class="col-sm-2">
                                                    <select class="form-control" name="sexo"><option value="0">Femenino</option><option value="1">Masculino</option></select>
                                                </div>
                                                <label class="col-sm-1 control-label" for="tipo">Tipo</label>
                                                <div class="col-sm-2">
                                                    <?php
                                                    $css = 'class="form-control search-select" id="tipo" placeholder="Seleccione tipo usuario"';
                                                    echo form_dropdown("tipo", $tipousu, $this->form_data->tipousuario, $css);
                                                    ?>
                                                </div>                                                
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">

                                            </div>
                                        </div>
                                    </div>

                                    <hr>
                                    <div class="row">
                                        <div class="col-md-4"></div>
                                        <div class="col-md-2">
                                            <button class="btn btn-primary btn-block" type="submit">
                                                <i class="icon-save"></i>
                                                Guardar                                        
                                            </button>
                                        </div>
                                        <div class="col-md-2">
                                            <button class="btn btn-danger btn-block" type="reset">
                                                <i class="icon-save"></i>
                                                Cancelar                                        
                                            </button>
                                        </div>
                                        <div class="col-md-4"></div>
                                    </div>
                                </form>
                            </div>
                            <!-- end: TEXT FIELDS PANEL -->
                        </div>
                    </div>
                </div>
                <!-- end: DYNAMIC TABLE PANEL -->
            </div>
        </div>
    </div>    
</div>
